package domain;

import java.util.*;

public class User {

    private String name;
    private int credits;
    private String[] interestsArray = {"A"};
    private List interertsList = new ArrayList();
    private Date lastVist;
    private String placeOfBrith;

    private Map<String, String> interertsMap = new HashMap<String, String>();

    public User() {

        interertsList.add("AAA");
        interertsMap.put("A", "AA");

    }


    public String getPlaceOfBrith() {
        return placeOfBrith;
    }

    public void setPlaceOfBrith(String placeOfBrith) {
        this.placeOfBrith = placeOfBrith;
    }

    public Date getLastVist() {
        return lastVist;
    }

    public void setLastVist(Date lastVist) {
        this.lastVist = lastVist;
    }

    public boolean validatePassword(String str) {
        Random random = new Random();
        return random.nextBoolean();
    }

    private boolean validatePassword2(String str) {
        Random random = new Random();
        return random.nextBoolean();
    }

    public static boolean validatePassword3(String str) {
        Random random = new Random();
        return random.nextBoolean();
    }

    public void  addInterests(String ...str) {
        System.out.println(Arrays.asList(str));
    }

    public List getInterertsList() {
        return interertsList;
    }

    public void setInterertsList(List interertsList) {
        this.interertsList = interertsList;
    }

    public Map<String, String> getInterertsMap() {
        return interertsMap;
    }

    public void setInterertsMap(Map<String, String> interertsMap) {
        this.interertsMap = interertsMap;
    }

    public String[] getInterestsArray() {
        return interestsArray;
    }

    public void setInterestsArray(String[] interestsArray) {
        this.interestsArray = interestsArray;
    }

    public boolean isVipMember(String name) {
        return false;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getCredits() {
        return credits;
    }

    public void setCredits(int credits) {
        this.credits = credits;
    }
}
